package com.jrx.anytxn.transaction.mapper.ext;

import com.jrx.anytxn.transaction.entity.TlPaymentAllocationLog;
import com.jrx.anytxn.transaction.entity.TlWechatRefundLog;
import com.jrx.anytxn.transaction.mapper.base.TlWechatRefundLogMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 微信退款流水扩展
 *
 * @author liuzb
 * date: 2023/02/27
 **/
public interface ExtTlWechatRefundLogMapper extends TlWechatRefundLogMapper {

    /**
     * 查询微信退款记录
     * @param payId
     * @param tenantId
     * @param customerId
     * @return
     */
    List<TlWechatRefundLog> queryByPayIdAndCustomerId(@Param(value = "payId") String payId, @Param(value = "tenantId") String tenantId, @Param(value = "customerId") String customerId,
                                                      @Param(value = "loanId") String loanId);

    /**
     * 根据借据编号和原还款流水号查询退款信息
     * @param customerId
     * @param seqNo
     * @param loanId
     * @param tenantId
     * @return
     */
    List<TlWechatRefundLog> queryBySeqNoAndLoanId(@Param(value = "customerId") String customerId, @Param(value = "seqNo") String seqNo, @Param(value = "loanId") String loanId,
                                                       @Param(value = "tenantId") String tenantId, @Param(value = "sumStatus") String sumStatus);
}